package cn.isjinhao.crws.sql.grammar;

import cn.isjinhao.crws.sql.lexical.scan.TokenSequence;

/**
 * @Author ISJINHAO
 * @Date 2021/2/24 11:07
 */
public class ParseException extends RuntimeException {

    public ParseException(String message) {
        super(message);
    }

    public ParseException(String message, TokenSequence sequence) {
        super(message + " : " + sequence.takeCur() + ". at " + sequence.getCurrent() + ".");
    }

}
